import { Component, OnInit, OnDestroy } from '@angular/core';
import {ActivatedRoute, Router} from "@angular/router";
@Component({
    selector: 'content',
    templateUrl: 'content.component.html',
    styleUrls: ['content.component.scss'],
})
export class ContentComponent implements OnInit, OnDestroy {

    id;
    constructor(public router:Router, public route:ActivatedRoute) {
      console.log(this.route,11,'ContentComponent');
        route.params.subscribe(params=>{
            console.log(params,14,'ContentComponent');
            this.id = +params['id'];
        });
    }

    ngOnInit() {
        console.log(this.route,11,'ContentComponent-init');
    }

    ngOnDestroy() {

    }
}
